package com.by.bean;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * sku信息
 * </p>
 *
 * @author wyh
 * @since 2025-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sku")
@ApiModel(value="Sku对象", description="sku信息")
public class Sku implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "属性id")
    @TableId(value = "sku_id", type = IdType.AUTO)
    private Long skuId;


    @ApiModelProperty(value = "SPU id")
    @TableField("spu_id")
    private Long spuId;

    @ApiModelProperty(value = "sku名称")
    @TableField("sku_name")
    private String skuName;

    @ApiModelProperty(value = "多个销售属性值id逗号分隔")
    @TableField("attrs")
    private String attrs;

    @ApiModelProperty(value = "sku图片")
    @TableField("img_url")
    private String imgUrl;

    @ApiModelProperty(value = "售价，整数方式保存")
    @TableField("price_fee")
    private Long priceFee;

    @ApiModelProperty(value = "市场价，整数方式保存")
    @TableField("market_price_fee")
    private Long marketPriceFee;

    @ApiModelProperty(value = "商品编码")
    @TableField("party_code")
    private String partyCode;

    @ApiModelProperty(value = "商品条形码")
    @TableField("model_id")
    private String modelId;

    @ApiModelProperty(value = "商品重量")
    @TableField("weight")
    private BigDecimal weight;

    @ApiModelProperty(value = "商品体积")
    @TableField("volume")
    private BigDecimal volume;

    @ApiModelProperty(value = "状态 1:enable, 0:disable, -1:deleted")
    @TableField("status")
    private Integer status;


}
